import { createRouter, createWebHashHistory } from 'vue-router'

export const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/',
            redirect: '/test'
        },
        {
            path: '/a-home',
            component: () => import('../view/a-home/index.vue')
        },
        {
            path: '/test',
            component: () => import('../view/test/index.vue')
        },
        {
            path: '/pinia',
            component: () => import('../view/pinia/index.vue')
        },
        {
            path: '/el-scrollbar',
            component: () => import('../view/el-scrollbar/index.vue')
        },
        {
            path: '/vue-baidu-map',
            component: () => import('../view/vue-baidu-map/index.vue')
        },
        {
            path: '/special-effect',
            component: () => import('../view/special-effect/index.vue')
        },
        {
            path: '/batch-download',
            component: () => import('../view/batch-download/index.vue')
        },
        {
            path: '/el-table',
            component: () => import('../view/el-table/index.vue')
        },
        {
            path: '/:pathMatch(.*)*',
            component: () => import('../view/404/index.vue')
        }
    ]
})
